package com.gln.bloger.dao;

import java.util.List;

import com.gln.bloger.exception.BlogerException;
import com.gln.bloger.pojos.User;

/**
 * Manages users, permissions.
 */
public interface UserDao extends BaseDao<User>{
	/**
	 * get by name -- contains enabled & disabled  user
	 * @param name
	 * @param enabled
	 * @return
	 * @throws BlogerException
	 */
	public User getByMail(String mail) throws BlogerException;
	/**
	 * get all the users in this web site
	 * @return
	 * @throws BlogerException
	 */
	public List<User> getUsers()throws BlogerException;
	
	/**
	 * get all the users in this web site optionally include dis-enabled users
	 * @param enable
	 * @return
	 * @throws BlogerException
	 */
	public List<User> getUsers(Boolean enable)throws BlogerException;
}
